﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApplication1.TestValid
{
    public class TestValidUOW
    {
        public void TestValidUnitofWork()
        {
            DTOTypeTask dto = new DTOTypeTask()
            {
                R = 255, G = 255, B = 255,
                Libelle = "TEST"
            };

            DAOTypeTask<PLAN_TYPE_TASK> dao = new DAOTypeTask<PLAN_TYPE_TASK>(
                new FactoryDTOTypeTask(), new BDDPlanning_1Entities());

            dao.Insert(dto);
        }
    }
}
